package com.enterprise.application.orm.hibernate;

import com.enterprise.support.utility.Pagination;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Zhanggaojiang
 * Date: 11-1-19
 * Time: 上午8:41
 * Email: z82422@gmail.com
 * 数据库访问层 基础接口,  持久化操作 可通过 AbstractDaoImpl类完成所有的持久化操作
 */
public interface IBaseDao<T> {

   /* String save(T entity);

    void delete(T entity);

    void update(T entity);*/

    T find(T input);

    List<T> finds(T input);

    Integer count(T enterprise);

    Pagination findPager(T enterprise);
}
